package com.householdregister.residence.controller;

import javax.servlet.http.HttpServletResponse;

import com.householdregister.common.utils.poi.ExcelUtil;
import com.householdregister.residence.domain.HouseholdRegisterHistory;
import com.householdregister.residence.domain.HouseholdResidence;
import com.householdregister.residence.service.IHouseholdRegisterService;
import com.householdregister.residence.service.IHouseholdResidenceService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.householdregister.common.annotation.Log;
import com.householdregister.common.core.controller.BaseController;
import com.householdregister.common.core.domain.AjaxResult;
import com.householdregister.common.enums.BusinessType;
import com.householdregister.common.core.page.TableDataInfo;

import java.util.List;

/**
 * 户口管理Controller
 * 
 * @author zyj
 * @date 2022-02-22
 */
@RestController
@RequestMapping("/residence/history")
public class HouseholdRegisterHistoryController extends BaseController
{
    @Autowired
    private IHouseholdRegisterService registerService;

    /**
     * 查询户口管理列表
     */
    @PreAuthorize("@ss.hasPermi('residence:residence:list')")
    @GetMapping("/list")
    public AjaxResult list(HouseholdRegisterHistory householdRegisterHistory)
    {
        List<HouseholdRegisterHistory> householdRegisterHistories = registerService.selectHouseholdResidenceHistoryList(householdRegisterHistory);
        return AjaxResult.success(householdRegisterHistories);
    }

}
